package com.zjw.designPattern.singleton;

/**
 * 饿汉式，线程安全(空间换时间)
 * */
public class SingletonHungry {

    private SingletonHungry() {
    }

    private static final SingletonHungry singleton = new SingletonHungry();

    public SingletonHungry getSingleton(){
        return singleton;
    }

}
